Sets an object reference on a variable or a Property.
変数や属性へのオブジェクト参照を設定します。
Set ObjectVar = Object
Set ObjectVar = Object
ObjectVar: a variable or a property that requires an object reference.
ObjectVar: オブジェクト参照を設定する変数ないし属性。
Object: Object that the variable or the property refers to.
Object: 変数や属性への参照を設定するオブジェクト。
Nothing - Assign the Nothing object to a variable to remove a previous assignment.
Nothing - 変数に Nothing オブジェクトを割り当て、以前の割り当てを削除します。
Sub ExampleSet
Sub ExampleSet
Dim oDoc As Object
Dim oDoc As Object
Set oDoc = ActiveWindow
Set oDoc = ActiveWindow
Print oDoc.Name
Print oDoc.Name
End Sub
End Sub